
import { Component,ChangeDetectionStrategy, OnInit, ElementRef, Input } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Component({
  selector: 'el-icon',
  templateUrl: './icon.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class IconComponent implements OnInit {
  private el: any;
  private sanitizer: any;
  nativeClass: string = ' ';

  @Input() iconName: string = '';

  constructor(el: ElementRef, sanitizer: DomSanitizer) { 
    this.sanitizer = sanitizer;
    this.el = el;
    this.nativeClass += this.el.nativeElement.classList.value;
  }

  ngOnInit(): void {
  }

  ctorParameters() {
    return [];
  }
}
